CCFLAGS = '-Wall -Werror'
LINKFLAGS = '-Wall -Werror -lpthread -lgflags'

env = Environment(CCFLAGS=CCFLAGS, LINKFLAGS=LINKFLAGS)
env.ParseConfig('pkg-config --cflags --libs Magick++')
env.ParseConfig('pkg-config --cflags --libs curlpp')
env.ParseConfig('pkg-config --cflags --libs opencv')

# Panorama grabber.
env.Program(['grabber.cpp', 'Color.cpp', 'MagickImage.cpp', 'OpenCVImage.cpp',
    'Warp.cpp', 'AppliedWarp.cpp', 'TiledInterpolator.cpp',
    'PanoramaDownloader.cpp',
    'BilinearInterpolator.cpp', 'Mutex.cpp', 'Lock.cpp'])

# Image warper.
env.Program(['warper.cpp', 'Color.cpp', 'MagickImage.cpp', 'OpenCVImage.cpp',
    'Warper.cpp', 'Warp.cpp', 'AppliedWarp.cpp', 'TiledInterpolator.cpp',
    'NearestInterpolator.cpp', 'BilinearInterpolator.cpp', 'Mutex.cpp',
    'Lock.cpp'])

# Server-side program.
env.Program(['planet.cpp', 'Color.cpp', 'MagickImage.cpp', 'OpenCVImage.cpp',
    'Warper.cpp', 'Warp.cpp', 'AppliedWarp.cpp', 'TiledInterpolator.cpp',
    'PanoramaDownloader.cpp',
    'BilinearInterpolator.cpp', 'Mutex.cpp', 'Lock.cpp'])

